package com.shuyun.vertx.domain;

import io.vertx.codegen.annotations.DataObject;
import io.vertx.core.json.JsonObject;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * Created by feng.ding on 2017/1/12.
 */
@DataObject(generateConverter = true)
public class Todo {
    private static final AtomicInteger acc = new AtomicInteger(0);
    private int id;
    private String title;
    private Boolean completed;
    private Integer order;
    private String url;

    public Todo(){}

    public Todo(int id, String title, Boolean completed, Integer order, String url) {
        this.id = id;
        this.title = title;
        this.completed = completed;
        this.order = order;
        this.url = url;
    }

    public Todo(JsonObject obje){

    }

}
